import { _decorator, Component, Node, Animation } from 'cc';
const { ccclass, property } = _decorator;
// ChestController.ts
@ccclass('ChestController')
export class ChestController extends Component {
    @property(Node)
    private anim: Node = null;

    start(){
        this.anim.getComponent(Animation).play("test")
        console.log(this.anim.getComponent(Animation).defaultClip.name)
    }
    

}